﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllForum
    {
        #region[Get-Data]
        public DataTable GetForum(string keywords)
        {
            return DalForum.GetForum(keywords);
        }
        public DataTable GetForumEdit(int id)
        {
            return DalForum.GetForumEdit(id);
        }
        public DataTable GetForumFillterStatus(int IsActive)
        {
            return DalForum.GetForumFillterStatus(IsActive);
        }
        public DataTable GetForumFillterCategories(int Cid)
        {
            return DalForum.GetForumFillterCategories(Cid);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOForum obj)
        {
            return DalForum.Insert(obj);
        }
        public static bool Update(DTOForum obj)
        {
            return DalForum.Update(obj);
        }
        public static bool Delete(DTOForum obj)
        {
            return DalForum.Delete(obj);
        }
        public static bool UpdateNum(DTOForum obj)
        {
            return DalForum.UpdateNum(obj);
        }
        public static bool UpdateCheck(DTOForum obj)
        {
            return DalForum.UpdateCheck(obj);
        }
        #endregion

        #region[Get-Data-HomePage]
        public DataTable GetForumHomePage(int Cid)
        {
            return DalForum.GetForumHomePage(Cid);
        }
        #endregion
    }
}